package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 购物车表
 *
 * @TableName sys_cart
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_cart")
@Data
public class CartDO extends BaseEntity implements Serializable {
    /**
     * 购物车表ID
     */
    @TableId
    private Long id;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品数量
     */
    private Integer productNum;
}